﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AnimationEditor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());

            Form1 Form = new Form1();
            Form.Show();

            int nNow = System.Environment.TickCount;

            while (Form.Looping)
            {
                int nBefore = nNow;
                nNow = System.Environment.TickCount;
                float fElapsedTime = (nNow - nBefore) / 1000.0f;

                Form.Update(fElapsedTime);
                Form.Render();

                Application.DoEvents();
            }

            Form.Terminate();
        }
    }
}
